﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sworm
{
    public sealed class QueryOptions
    {
        private readonly Database db;
        public QueryOptions(Database db)
        {
            this.db = db;
        }

        public JoinQuery<TRootRecord> Joining<TRootRecord>(string rootAlias)
        {
            return new JoinQuery<TRootRecord>(db, rootAlias);
        }

        public SimpleQuery<TRootRecord> Simple<TRootRecord>()
        {
            return new SimpleQuery<TRootRecord>(db);
        }
    }
}
